<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"  prefix="fmt"%>
<%@page import="com.mall.model.User" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  
    
    <title>上传图片</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
 
  <body>
   		<form action="${pageContext.request.contextPath}/commodity/uploadImg.action" 
   		method="post" enctype="multipart/form-data">
   				<input name=img type="file"/>
   				<input type="submit" value="提交"/>
   		</form>
  <c:if test="${img!=null}" >
  		<img src="${pageContext.request.contextPath}/file/img/${img}"/>
  </c:if>
  </body>
</html>
